<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // =
        var a=10;
        console.log(a);
        // +=通常用来做拼接
        var a=10;
        var b=a+=5;
        console.log(b);
        // -=
        var a=20;
        console.log(a-=10);
        // /=
        var a=30;
        console.log(a/=5);
        // *=
        var a=24;
        console.log(a*=10);
        // %=
        var a=89;
        console.log(a%=3);
    </script>
</body>
</html>